<!DOCTYPE html>
<html>
<head>
    <title>用户数据分析</title>
		<#include "/header.html">
        <script src="${request.contextPath}/statics/plugins/ztree/jquery.ztree.core.js"></script>
        <script src="${request.contextPath}/statics/plugins/ztree/jquery.ztree.exhide.js"></script>
        <script src="${request.contextPath}/statics/plugins/ztree/fuzzysearch.js"></script>
    <style type="text/css">
        .grid-btn .btn {
            margin-right: 0px;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="panel panel-default" style="border: 0px;">
            <div class="panel-body" style="padding: 0px">
        <div class="grid-btn">
			<#if shiro.hasPermission("water:prodataanalyse:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("water:prodataanalyse:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("water:prodataanalyse:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                <select v-model="q.date1" class="form-control" name="selQueryKey" id="selQueryKey" style="padding-left:10px;padding-right:0px;">
                    <option value="">前量日期</option>
                    <option :value="item" v-for="(item,key) in dataDate" :key="key">{{ item }}
                    </option>
                </select>
            </div>
            <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
                <select v-model="q.date2" class="form-control" name="selQueryKey2" id="selQueryKey2" style="padding-left:10px;padding-right:0px;">
                    <option value="">后量日期</option>
                    <option :value="item" v-for="(item,key) in dataDate" :key="key">{{ item }}
                    </option>
                </select>
            </div>

        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <select v-model="q.ftype" class="form-control" name="selQueryAmount" id="selQueryAmount"
                    style="padding-left:10px;padding-right:0px;">
                <option value="C00">用量查询</option>
                <option value="C_0">用量小于0</option>
                <option value="C01">用量等于0</option>
                <option value="C02">用量(0~30)</option>
                <option value="C03">用量[30~100]</option>
                <option value="C04">用量大于100</option>
                <option value="C05">本次大于2000</option>
                </option>
            </select>
        </div>
        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;width:15%;">
            <div class="input-group">
                <input type="text" class="form-control" v-model="q.cid"  placeholder="表卡编号"/>
                <span class="input-group-btn">
						<button class="btn btn-default" type="button">
							<a @click="getProName"><i class="fa fa-refresh"></i>反查</a>
						</button>
					</span>
            </div>
        </div>

        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <input type="text" class="form-control" v-model="q.deviceid" placeholder="设备号"/>
        </div>
            <a class="btn btn-primary" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
            <a class="btn btn-primary" @click="initData"><i class="fa fa-refresh"></i>&nbsp;刷新</a>
            <a class="btn btn-primary" @click="outxls"><i class="fa fa-download"></i>&nbsp;导出</a>
<a class="btn btn-primary" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
    更多查询条件
</a>
</div>


<div id="collapseOne" class="panel-collapse collapse">
    <div class="panel-body" style="padding: 5px 0px 0px 0px">

        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <select v-model="q.fstatus" class="form-control" name="selQueryStatus" id="selQueryStatus"
                    style="padding-left:10px;padding-right:0px;">
                <option value="0">全部设备</option>
                <option value="1">故障设备</option>
                </option>
            </select>
        </div>
        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <input type="text" class="form-control" v-model="q.cname" placeholder="客户名称"/>
        </div>
        <div class="col-sm-2" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <input type="text" class="form-control" v-model="q.clientaddr" placeholder="客户地址"/>
        </div>
        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <input type="text" class="form-control" v-model="q.plateno" placeholder="表盘号"/>
        </div>
        <div class="col-sm-1" style="padding-left:0px;padding-right:0px;margin-right: 5px;">
            <input type="text" class="form-control" v-model="q.stampno" placeholder="表封号"/>
        </div>
    </div>
</div>

</div>

        <div id="content" class="row-fluid">
            <div class="col-md-2 panel panel-default">
                <input type="text" id="treeSearchKey" value="" class="empty" placeholder="请输入关键字" style="margin-left: 5px; margin-top: 5px;"/>
                <ul id="deptTreeLeft" class="ztree"></ul>
            </div>
            <div class="col-md-10">
                <table id="jqGrid"></table>
                <div id="jqGridPager"></div>
            </div>
        </div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">客户名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.clientName"
                           placeholder="客户名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">客户地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.clientAddress"
                           placeholder="客户地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">设备号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceId"
                           placeholder="设备号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">IMEI</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceAddress"
                           placeholder="IMEI"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">采集方式</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceTypeName"
                           placeholder="采集方式"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用量</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.useData"
                           placeholder="用量"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">上次数据</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeData"
                           placeholder="上次数据"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">上次时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeDate"
                           placeholder="上次时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">上次状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeStatus"
                           placeholder="上次状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">本次数据</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterData"
                           placeholder="本次数据"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">本次时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterDate"
                           placeholder="本次时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">本次状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterStatus"
                           placeholder="本次状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">小区名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="proDataAnalyse.proName"
                           placeholder="小区名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <!-- <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..."
                       @click="saveOrUpdate" value="确定"/> -->
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>

    <div id="infoLayer" style="display: none;padding:10px;">
    <div class="panel panel-default"> <!-- Only required for left/right tabs -->
        <div class="panel-default">
            <form class="form-inline" role="form" style="padding:15px;">
                <div class="input-group">
                    <span class="input-group-addon">设备号码</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceId" placeholder="设备号"
                           readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">表卡编号</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.clientId" placeholder="表卡编号"
                           readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">表盘号码</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.plateno" placeholder="表盘号"
                           readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">表封号码</span>
                        <input type="text" class="form-control" v-model="proDataAnalyse.stampno" placeholder="表封号"
                               readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">客户姓名</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.clientName" placeholder="客户姓名"
                           readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">客户地址</span>
                        <input type="text" class="form-control" v-model="proDataAnalyse.clientAddress"
                               placeholder="客户地址" readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">IMEI</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.deviceAddress" placeholder="设备地址"
                           readonly/>
                </div>
                <!--
                <div class="form-group">
                     <span class="input-group-addon">采集方式</span>

                        <input type="text" class="form-control" v-model="proDataAnalyse.deviceTypeName" placeholder="采集方式" readonly/>

                </div>
                -->
                <div class="input-group">
                    <span class="input-group-addon">期间用量</span>
                        <input type="text" class="form-control" v-model="proDataAnalyse.useData" placeholder="用量"
                               readonly/>
                </div>

                <div class="input-group">
                    <span class="input-group-addon">之前日期</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeDate" placeholder="之前日期"
                           readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">本次日期</span>
                        <input type="text" class="form-control" v-model="proDataAnalyse.afterDate" placeholder="本次日期"
                               readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">之前数据</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeData" placeholder="之前数据"
                           readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">本次数据</span>
                        <input type="text" class="form-control" v-model="proDataAnalyse.afterData" placeholder="本次数据"
                               readonly/>
                </div>
                <div class="input-group">
                    <span class="input-group-addon">之前状态</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.beforeStatus" placeholder="之前状态"
                           readonly/>
                </div>

                <div class="input-group">
                    <span class="input-group-addon">本次状态</span>
                    <input type="text" class="form-control" v-model="proDataAnalyse.afterStatus" placeholder="本次状态"
                           readonly/>
                </div>

            </form>
        </div>
        <div class="panel-body">
            <table id="jqGridData"></table>
            <div id="jqGridPagerData"></div>
        </div>
    </div>
</div>
</div>

</div>
<script src="${request.contextPath}/statics/js/modules/water/prodataanalyse.js?_${.now?long}"></script>
</body>
</html>